/**
 * 实现modal的打开和隐藏
 * @author wanglei@enersun.com.cn
 * @createTime 2016-6-13 11:45:28
 */
ModalUtil = {
	hideModal : function(modalId,callback) {
		$('#' + modalId).modal("hide");
		if(callback!=undefined){
			callback();
		}
	},
	showModal : function(dlgId, url, modalId, callback) {
		$('#' + dlgId).load(url, function() {
			$('#' + modalId).modal("show");
			if(callback!=undefined){
				callback();
			}
		});
	}
}